<div class="wrapper" cg-busy="{promise:loading,message:'正在加载...'}">
<form class="form-horizontal" ng-submit="save()">
    <div class="panel panel-default no-border ">
        <div class="panel-heading">
            <span>报名设置</span>
        </div>
        <div class="panel-body">
            
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">报名年份</label>
                    <div class="col-sm-1">
                    <input type="text" ng-model="settings.year" class="form-control" />
                </div>
                </div>
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">报名开关</label>
                    <div class="col-sm-4">
                        <label class="i-switch i-switch-lg bg-primary m-t-xs m-r">
                            <input type="checkbox" ng-model="settings.systemEnabled">
                            <i></i>
                        </label>
                    </div>
                    <label for="" class="col-sm-4 control-label">关闭后，全省考生不允许登录</label>
                </div>
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">是否允许个人缴费</label>
                    <div class="col-sm-4">
                        <label class="i-switch i-switch-lg bg-primary m-t-xs m-r">
                            <input type="checkbox" ng-model="settings.payLimited">
                            <i></i>
                        </label>
                    </div>
                    <label for="" class="col-sm-4 control-label">开启后，即使处于批量缴费的考生也能个人缴费</label>
                </div>
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">报名时段{{settings.systemStartTime | date}}</label>
                    <div class="col-sm-3">
                        <input type="text" readonly="readonly" data-date-format="yyyy-MM-dd" ng-model="settings.systemStartTime" class="form-control" 
        ng-required="true" data-autoclose="1" bs-datepicker />
                    </div>
                    <label for="" class="col-sm-1 control-label">至</label>
                    <div class="col-sm-3">
                        <input type="text" readonly="readonly" data-date-format="yyyy-MM-dd" ng-model="settings.systemEndTime" class="form-control" 
        ng-required="true" data-autoclose="1" bs-datepicker />
                    </div>
                </div>
                <p>区域报名时间设置</p>
                <div class="form-group" ng-repeat="item in settings.cities">
                    <label for="" class="col-sm-2 control-label">{{item.name}}</label>
                    <div class="col-sm-3">
                        <input type="text" readonly="readonly" data-date-format="yyyy-MM-dd" ng-model="item.start" class="form-control" 
        ng-required="true" data-autoclose="1" bs-datepicker />
                    </div>
                    <div class="col-sm-3">
                        <input type="text" readonly="readonly" data-date-format="yyyy-MM-dd" ng-model="item.end" class="form-control" 
        ng-required="true" data-autoclose="1" bs-datepicker />
                    </div>
                </div>
                
            
            
        </div>
        <div class="panel-footer text-center" >
                <button class="btn btn-lg btn-primary" >保存设置</button>
            </div>
    </div>
    </form>
</div>
